package com.imooc;

import com.imooc.controller.WelcomeController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * <h1></h1>
 *
 * @author : dzj
 * @create: 2022-05-12 18:09
 */
@Configuration
@ComponentScan("com.imooc")
public class Debug0806_autowire {
	public static void main(String[] args) {

		ApplicationContext ctx = new AnnotationConfigApplicationContext(Debug0805_doCreateBean.class);
		WelcomeController welcomeController = ctx.getBean(WelcomeController.class);
		welcomeController.handleRequest();
	}
}
